package city_model;

import java.util.HashSet;
import java.util.Set;

public class Junction {
	private String name;
	private Set<String> stationIDs;
	
	
public Junction(String name)
{
	this.name = name;
	this.stationIDs = new HashSet<String>();
}

public void addStation(String s)
{
	if(!stationIDs.contains(s))
	{
		stationIDs.add(s);
	}
}

public String getName()
{
	return name;
}

public Set<String> getStations()
{
	return stationIDs;
}

}
